﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

namespace YourCompany.Modules.$safeprojectname$
{
    public interface IDataProvider
    {
        #region "Methods"
        /// <summary>
        /// Gets the module names.
        /// </summary>
        /// <param name="ModuleId">The module id.</param>
        /// <returns></returns>
        IDataReader Get$safeprojectname$s(int moduleId);
        /// <summary>
        /// Gets the name of the module.
        /// </summary>
        /// <param name="moduleId">The module id.</param>
        /// <param name="itemId">The item id.</param>
        /// <returns></returns>
        IDataReader Get$safeprojectname$(int moduleId, int itemId);
        /// <summary>
        /// Adds the name of the module.
        /// </summary>
        /// <param name="moduleId">The module id.</param>
        /// <param name="content">The content.</param>
        /// <param name="userId">The user id.</param>
        /// <returns></returns>
        int Add$safeprojectname$(int moduleId, string content, int userId);
        /// <summary>
        /// Updates the name of the module.
        /// </summary>
        /// <param name="moduleId">The module id.</param>
        /// <param name="itemId">The item id.</param>
        /// <param name="content">The content.</param>
        /// <param name="userId">The user id.</param>
        void Update$safeprojectname$(int moduleId, int itemId, string content, int userId);
        /// <summary>
        /// Deletes the name of the module.
        /// </summary>
        /// <param name="moduleId">The module id.</param>
        /// <param name="itemId">The item id.</param>
        void Delete$safeprojectname$(int moduleId, int itemId);
        #endregion
    }
}